package cn.iocoder.yudao.module.written.exam.enums.llm;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 大模型消息状态枚举
 *
 * @author 芋道源码
 */
@Getter
@AllArgsConstructor
public enum LlmMessageStatusEnum {

    PROCESSING(0, "处理中"),
    SUCCESS(1, "成功"),
    FAILED(2, "失败");

    private final Integer status;
    private final String name;

    /**
     * 判断是否为处理中状态
     */
    public static boolean isProcessing(Integer status) {
        return PROCESSING.getStatus().equals(status);
    }

    /**
     * 判断是否为成功状态
     */
    public static boolean isSuccess(Integer status) {
        return SUCCESS.getStatus().equals(status);
    }

    /**
     * 判断是否为失败状态
     */
    public static boolean isFailed(Integer status) {
        return FAILED.getStatus().equals(status);
    }

} 